﻿/* ----------------------------------------------------------------------------
 * Copyright (c) Philip Stears 
 *
 * This source code is subject to terms and conditions of the Microsoft Public 
 * License (Ms-PL).
 * 
 * By using this source code in any fashion, you are agreeing to be bound 
 * by the terms of the Microsoft Public License.
 * 
 * To request a copy of the Microsoft Public License, send a request by email
 * to license@connectbasic.net.
 *
 * This notice must not be removed from this software.
 * ---------------------------------------------------------------------------- */

namespace ConnectBasic.Shell.Hosting
{

    /// <summary>
    /// Provides an abstract representation of the storage items
    /// which comprise a project.
    /// </summary>
    public interface IProjectStore
    {

        /// <summary>
        /// Gets access to the properties in the project store.
        /// </summary>
        IProjectStoreProperties Properties { get; }

        /// <summary>
        /// Gets the folders in the project store.
        /// </summary>
        IProjectStoreFolderCollection Folders { get; }

        /// <summary>
        /// Gets the child items in the project store.
        /// </summary>
        IProjectStoreItemCollection Items { get; }

        /// <summary>
        /// Saves the project to its backing store.
        /// </summary>
        void Save();
    }
}
